package mysql

import "gorm.io/gorm"

type LiePinUser struct {
	gorm.Model
	Account  string `gorm:"type:varchar(20);not null"`
	Password string `gorm:"type:varchar(40);not null"`
}
type AuthRealName struct {
	gorm.Model
	UserId int    `gorm:"type:int"`
	Name   string `gorm:"type:varchar(25)"`
	IdCard string `gorm:"type:varchar(18)"`
}

func (r *AuthRealName) RealNameList() error {
	return DB.Debug().Where("user_id=?", r.UserId).Limit(1).Find(&r).Error
}
func (r *AuthRealName) RealNameAdd() error {
	return DB.Debug().Create(&r).Error
}
